home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 1999 August / SGI Freeware 1999 August.iso / dist / fw_msql.idb / usr / freeware / msql / info / README.sco.z / README.sco
Encoding:
Text File  |  1998-10-28  |  1.8 KB  |  45 lines

  1. Building mSQL 2.0 on SCO
  2. ------------------------
  3.  
  4. It appears that although SCO has the dlfcn.h header file it's dynamic
  5. loading routines are not where they shuold be.  As I do not have access
  6. to a SCO machine the only way to build mSQL 2.0 on SCO is to remove the
  7. dynamic module loading capabilities of the Lite / W3-mSQL language.  To
  8. do this, edit common/config.h and delete the line that defines
  9. HAVE_DLFCN_H after you have run the setup script
  10.  
  11. Another option has been submitted by Ron Record <rr@sco.COM>.  He states
  12.  
  13.     I recently downloaded and built mSQL 2.0 Beta 6 on my SCO OpenServer 5
  14.     platform. In order to use dlopen(), dlclose() etc on OpenServer, you
  15.     must build an ELF executable which then can use the dynamically loaded
  16.     modules in libc.so. To accomplish this, the "-b elf" option to gcc is
  17.     used.
  18.  
  19.     I successfully built mSQL 2.0 Beta 6 on SCO by setting CC="gcc -b elf"
  20.     and exporting CC prior to running "./setup" as per the build
  21.     instructions.
  22.  
  23.     I used Robert Lipe's GNU Dev Sys for SCO OpenServer available via
  24.     http://www.sco.com/skunkware/
  25.     This version of gcc supports the "-b elf" option and builds ELF format.
  26.  
  27.  
  28. Robert Lipe <robertl@dgii.com> responded with
  29.  
  30.     > platform. In order to use dlopen(), dlclose() etc on OpenServer, you
  31.     > must build an ELF executable which then can use the dynamically 
  32.     > loaded modules in libc.so. To accomplish this, the "-b elf" option 
  33.     > to gcc is used.
  34.  
  35.     This is true with both the SCO development system or the GNU 
  36.     Development system.   dlopen() and friends only work with ELF 
  37.     binaries.
  38.  
  39.     > This version of gcc supports the "-b elf" option and builds 
  40.     > ELF format.
  41.  
  42.     Just as a "heads up" when GCC 2.8.0 is ever released [ It's been Real
  43.     Soon Now for about a year and a half. ] the correct flag will be 
  44.     "-m elf" instead of "-b elf".
  45.